package com.gqzm.side.domain.bo;

import com.alibaba.fastjson.JSONArray;
import com.alibaba.fastjson.JSONObject;
import com.gqzm.side.common.utils.OshiUtils;
import lombok.Builder;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.UtilityClass;

import java.util.List;

/**
 * @ClassName: {@link SystemStaticInfo}
 * @description: 系统静态信息类
 * @author: peter qin
 * @date: 2023 12 18
 * @version: 1.0
 **/

@Builder
@UtilityClass
public class SystemStaticInfo {
    //系统信息
    @Getter
    @Setter
    private static String osName;
    @Getter
    @Setter
    private static String osArch;
    @Getter
    @Setter
    private static String computerName;
    @Getter
    @Setter
    private static String computerIp;

    //系统磁盘信息
    @Getter
    @Setter
    private static List<BoxMonitorDisk> disks;

    static {
        try {
            OshiUtils.sysInfo();
            OshiUtils.sysFileInfo();
        }catch (Exception e) {
            e.printStackTrace();
        }

    }
}
